package com.yuanqi.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanqi.Common.Pojo.entity.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface CommentMapper extends BaseMapper<Comment> {

    @Update("update comment set fnum = fnum+1 where id = #{postId}")
    void updateByCommentId(Integer postId);
}
